#include "function.h"

FuncParam::FuncParam(QString name)
{
    _name = name;
}

QString FuncParam::name() const
{
    return _name;
}

Function::Function(QString name, QList<FuncParam> params)
{
    _name = name;
    _code = "";
    _params = params;
    rtnFunc = false;
}

bool Function::isRtnFunc() const
{
    return rtnFunc;
}

void Function::setRtnFunction(bool s)
{
    rtnFunc = s;
}

QString Function::name() const
{
    return _name;
}

void Function::setCode(QString code)
{
    _code = code;
}

QString Function::code() const
{
    return _code;
}

QList<FuncParam> Function::params() const
{
    return _params;
}

SysFunction::SysFunction(QString name, QList<FuncParam> params) : Function(name,params)
{
}
